//
//  BaseTableViewCell.m
//  JKWDTeacher
//
//  Created by 学大教育 on 2022/1/16.
//

#import "BaseTableViewCell.h"

@implementation BaseTableViewCell
+ (BaseTableViewCell *)cellForModel:(CellModel *)model tableView:(UITableView *)tableView
{
    
    BaseTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:model.cellClass];
  if (!cell) {
      Class cls = NSClassFromString(model.cellClass);
      cell = model.xib? [[NSBundle mainBundle]loadNibNamed:model.cellClass owner:nil options:nil].firstObject :[[cls alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:model.cellClass];
     }
   
   return cell;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
